<template>
  <div class="auth-wrapper">
    <div class="auth">
      <div class="auth-info">
        <div class="auth-img">
          <ImageView 
          src="https://www.youbaobao.xyz/mpvue-res/logo.jpg" 
          round
          
          />
        </div>

        <div class="sub-title">登录爱读书</div>
        <div class="title">全球好书免费读</div>
      </div>
      <button class="auth-btn"
      open-type="getUserInfo"
      @getuserinfo="getUserInfo"
      
      >授权登录</button>
    </div>
  </div>
</template>

<script>
import ImageView from "../../components/base/ImageView";
export default {
  components: {
    ImageView
  },
  data() {
    return {};
  },
  methods: {
    getUserInfo(){
        this.$emit('getUserInfo')
    }  
  },
  //生命周期 - 创建完成（访问当前this实例）
  created() {},
  //生命周期 - 挂载完成（访问DOM元素）
  mounted() {}
};
</script>
<style lang='scss'
 scoped>
/* @import url(); 引入css类 */
.auth-wrapper {
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: #999;
  z-index: 10000;
  .auth {
     
      
   position: relative;
    width: 270px;
    height: 248px;
    background: #f5f5ff;
    border-radius: 18px;
    margin-top: 22.5px;
    .auth-info {
         display: flex;
      flex-direction: column;
      align-items: center;
      margin-top: 22.5px;
        .auth-img{
            width:74px;
        }
      .sub-title {
          font-size:13px;
          color: #999;
          line-height:18.5px ;
          margin-top: 13px;
      }
      .title {
              font-size:16px;
          color: #333;
          font-weight: 400;
          line-height:22.5px ;
          margin-top: 3.5px;
      }
    }

    .auth-btn {
        position: absolute;
        bottom:0;
        width:100%;
        background-image:
        linear-gradient(90deg,#1EA3F5 0%,
        #0F87FC 100%); 
        border-radius: 0 0 18px 18px;
        font-size: 15px;
        height: 49px;
        color:#fff;
        line-height: 49px;
    }
    
  }
}
</style>